package com.graduation.model;

import java.io.Serializable;

/**
 * @Description 商品信息类
 * @Author YaoQi
 * @Date 2018/3/10 23:28
 */
public class ProductEntity implements Serializable {

    private int ID; // 商品Id
    private int sellerId; // 卖家Id
    private int shopId; // 店铺Id
    private int classId; // 类型Id
    private String productName; // 商品名称
    private String productKeyWord; // 商品关键字
    private String productDecp; // 商品描述
    private String address; // 商品所在地
    private double price; // 商品价格
    private String picture; // 商品首页图片
    private int stock; // 商品库存
    private String brands; // 商品品牌
    private int sellNum; // 商品销量
    private int view; // 商品浏览次数
    private long createTime; // 商品创建时间
    private int createUser; // 商品创建人
    private long updateTime; // 商品修改时间
    private int updateUser; // 最近修改人

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public int getSellerId() {
        return sellerId;
    }

    public void setSellerId(int sellerId) {
        this.sellerId = sellerId;
    }

    public int getShopId() {
        return shopId;
    }

    public void setShopId(int shopId) {
        this.shopId = shopId;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductKeyWord() {
        return productKeyWord;
    }

    public void setProductKeyWord(String productKeyWord) {
        this.productKeyWord = productKeyWord;
    }

    public String getProductDecp() {
        return productDecp;
    }

    public void setProductDecp(String productDecp) {
        this.productDecp = productDecp;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getBrands() {
        return brands;
    }

    public void setBrands(String brands) {
        this.brands = brands;
    }

    public int getSellNum() {
        return sellNum;
    }

    public void setSellNum(int sellNum) {
        this.sellNum = sellNum;
    }

    public int getView() {
        return view;
    }

    public void setView(int view) {
        this.view = view;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public int getCreateUser() {
        return createUser;
    }

    public void setCreateUser(int createUser) {
        this.createUser = createUser;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public int getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(int updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    public String toString() {
        return "ProductEntity{" +
                "ID=" + ID +
                ", sellerId=" + sellerId +
                ", shopId=" + shopId +
                ", classId=" + classId +
                ", productName='" + productName + '\'' +
                ", productKeyWord='" + productKeyWord + '\'' +
                ", productDecp='" + productDecp + '\'' +
                ", address='" + address + '\'' +
                ", price=" + price +
                ", picture='" + picture + '\'' +
                ", stock=" + stock +
                ", brands='" + brands + '\'' +
                ", sellNum=" + sellNum +
                ", view=" + view +
                ", createTime=" + createTime +
                ", createUser=" + createUser +
                ", updateTime=" + updateTime +
                ", updateUser=" + updateUser +
                '}';
    }
}
